package com.wangdao.mall.service;

import com.wangdao.mall.model.Password;
import com.wangdao.mall.model.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author:HaiyangTian
 * @Description:
 * @Date: Created in 16:44 2020/4/30
 * @Modified By:
 */
public interface UserService {

    List<User> allUser();

    int deleteUser(String id);

    List<User> searchUser(String nickname);

    int login(User user);

    int signup(User user);

    User getUserData(String token);

    void updateUserData(User user);

    int updatePwd(Password password);
}
